package com.xuerhua.yxt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xuerhua.yxt.dao.SchoolWechatTemplateMapper;
import com.xuerhua.yxt.model.SchoolWechatTemplate;
import com.xuerhua.yxt.service.ISchoolWechatTemplateService;
import com.xuerhua.yxt.view.SchoolWechatTemplateDictView;

@Service("schoolWechatTemplateService")
public class SchoolWechatTemplateServiceImpl implements ISchoolWechatTemplateService {

	@Autowired
	private SchoolWechatTemplateMapper schoolWechatTemplateMapper;
	
	@Override
	public int insertSelective(SchoolWechatTemplate record) {
		return schoolWechatTemplateMapper.insertSelective(record);
	}

	@Override
	public SchoolWechatTemplate selectByPrimaryKey(Integer id) {
		return schoolWechatTemplateMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(SchoolWechatTemplate record) {
		return schoolWechatTemplateMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SchoolWechatTemplate record) {
		return schoolWechatTemplateMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<SchoolWechatTemplateDictView> selectListForDict(SchoolWechatTemplate record) {
		return schoolWechatTemplateMapper.selectListForDict(record);
	}

	@Override
	public SchoolWechatTemplate selectByTemplateCode(SchoolWechatTemplate record) {
		return schoolWechatTemplateMapper.selectByTemplateCode(record);
	}

	@Override
	public String selectTemplateKey(Integer schoolId, String templateCode) {
		return schoolWechatTemplateMapper.selectTemplateKey(schoolId, templateCode);
	}

}
